
from selenium import webdriver
from lxml import etree
from time import sleep


# 实例化浏览器对象
bro = webdriver.Chrome(executable_path='./chromedriver')
bro.get('https://www.playergogo.com/video.php?url=https://youku.com-jy-youku.com/20200702/7609_c9ada4b4/index.m3u8')

# # 获取浏览器当前页面的源码数据
# page_text = bro.page_source
# # 解析企业名称
# tree = etree.HTML(page_text)
# li_list = tree.xpath('//*[@id="gzlist"]/li')
# for li in li_list:
#     name = li.xpath('./dl/@title')[0]
#     print(name)
# sleep(3)
# bro.quit()














